@extends('layouts.ajax_master')
@section('app_js')
    <script type="text/javascript" src="/resource/js/J_main.js"></script>
    <script type="text/javascript">
        $('#teamTable').dataTable().fnDestroy();
        initDataTables();
    </script>
@stop
@section('content')
    <table id="example" class="table table-striped responsive-utilities jambo_table">
        <thead>
        <tr class="headings">
            <th>
                <input type="checkbox" class="tableflat">
            </th>
            <th width="120px">仓库名称</th>
            <th width="150px">联系人</th>
            <th width="140px">电话</th>
            <th width="130px">地址</th>
            <th width="">email</th>
            <th width="">邮编</th>
            <th width="">图标</th>
            <th class=" no-link last"><span class="nobr" width="50px">操作</span>
            </th>
        </tr>
        </thead>

        <tbody>
        @foreach($info as $k => $inf)

            <tr class="even pointer img-box">
                <td class="a-center ">
                    <input type="checkbox" class="tableflat">
                </td>
                <td >{{ $inf->factory_name}}</td>
                <td class=" ">{{$inf->contact_name}}</td>
                <td class="">{{$inf->phone}}</td>
                <td class=" ">{{$inf->place}}{{$inf->address}}</td>
                <td class=" ">{{$inf->email}}</td>
                <td class=" ">{{$inf->postcord}}</td>
                <td class="">
                    <img src="{{$inf->picture}}" alt="" height=30 weight=30>
                </td>

                <td class=" last">
                    <a href="/admin/factory_edit?factory_id={{$inf->factory_id}}">编辑</a>
                    <a href="javascript:;" class="delete"  data-factory_id="{{$inf->factory_id}}">删除</a>
                </td>
            </tr>
        @endforeach
    </table>